<template>
  <div :class="{ 'Height100vh': fullHeight, 'Height91vh': !fullHeight }">
    <keep-alive>
      <iframe height="100%" width="100%" :src="urlpath" />
    </keep-alive>
  </div>
</template>

<script>
export default {
  name: 'PDFJSViewer',
  props: {
    urlpath: {
      type: String,
      default: ''
    },
    fullHeight: {
      required: false,
      type: Boolean,
      default() {
        return false;
      }
    }
  }
}
</script>

<style scoped>
div .Height91vh {
  height: 91vh;
  min-width: 400px;
}

div .Height100vh {
  height: 100vh;
  min-width: 400px;
}

</style>

